Skip to content

Prevent duplicate weekly discussions in Agent Performance Analyzer#31246

Merged
pelikhan merged 2 commits into
mainfrom
copilot/deep-report-fix-duplicate-discussions
May 9, 2026
Merged

Prevent duplicate weekly discussions in Agent Performance Analyzer#31246
pelikhan merged 2 commits into
mainfrom
copilot/deep-report-fix-duplicate-discussions

Conversation

Copilot AI commented May 9, 2026

Copy link
Copy Markdown
Contributor

The Agent Performance Analyzer was creating two near-identical weekly discussions within ~1 second, including one low-content/empty-body post. This change makes report publication deterministic to a single discussion per run.

  • Safe-output limit tightened

    • Reduced create-discussion.max from 2 to 1 in agent-performance-analyzer.md (and recompiled lock output), so only one discussion can be emitted by policy.
  • Prompt intent aligned to single-discussion flow

    • Updated guidance from “create architectural discussion” to “create architectural issue” for systemic follow-ups, removing a second discussion path from agent instructions.
  • Compiled workflow updated

    • Regenerated .lock.yml so runtime safe-output constraints and prompt text match source markdown.
safe-outputs:
  create-discussion:
    expires: 1d
    max: 1

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh gh repo view --json owner,name --jq .owner.login + "/" + .name -nolocalimports -importcfg /tmp/go-build900934659/b433/importcfg -pack /tmp/go-build900934659/b433/_testmain.go (http block)
    • Triggering command: /usr/bin/gh gh repo view --json owner,name --jq .owner.login + "/" + .name 64/pkg/tool/linux_amd64/vet copilot.originalgit (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw (http block)
  • https://api.github.com/orgs/owner/actions/secrets
    • Triggering command: /usr/bin/gh gh api /orgs/owner/actions/secrets --jq .secrets[].name on' --ignore-pat-c=4 (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/owner/actions/secrets --jq .secrets[].name ath ../../../.pr**/*.json --jq l /ref/tags/v9 remote sv git er copilot/deep-report-fix-duplicate-discussions on me: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } /../../.prettiergit erignore sv sh (http block)
  • https://api.github.com/orgs/test-owner/actions/secrets
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name -c=4 -nolocalimports -importcfg /tmp/go-build900934659/b432/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/logger/doc.go /home/REDACTED/work/gh-aw/gh-aw/pkg/logger/logger.go (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name ath ../../../.pr.prettierignore --jq -tools-tester.lock.yml /ref/tags/v9 Test User sv git er copilot/deep-report-fix-duplicate-discussions on me: String!) { repository(owner: $owner, name:-f /../../.prettiernode erignore ed } } sh (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq [.object.sha, .object.type] | @tsv 934659/b428/_pkg_.a /tmp/go-build900934659/b004/vet.REDACTED Name,createdAt,startedAt,updated/tmp/gh-aw-git-clone-1901702188 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq [.object.sha, .object.type] | @tsv RequiresMinIntegrity2674482294/001 -f 1/x64/bin/node -f owner=github -f 1/x64/bin/node t-37�� : ${{ github.repository }} -s -w -X main.version=acfd79d-dirty (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv se 934659/b085/vet.cfg cfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv *.json' '!../../../pkg/workflow/remote.origin.url config /usr/bin/docker l 64/pkg/tool/linu-c DiscussionsEnablprintf '%s' "$1" docker imag�� ting JavaScript files..." mcp/arxiv-mcp-server k/gh-aw/node_modules/.bin/sh json' --ignore-pgh --jq bject.type] | @tview git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv y_with_explicit_repo1910206613/001 o 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv 827791076/001 -buildtags 934659/b424/vet.cfg -errorsas -ifaceassert -nilfunc /opt/hostedtoolcache/go/1.25.8/x--jq -ato�� licyMinIntegrityOnlyrepos_only_without_min-integrity3805406630/0remote.origin.url -buildtags /usr/bin/git l -ifaceassert -nilfunc git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv /repos/actions/github-script/git/ref/tags/v9 never /tmp/go-build900934659/b458/testutil.test (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv 934659/b481/_pkg_.a (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv se cfg 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv _.a 934659/b017/vet.cfg ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/actions/download-artifact/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/download-artifact/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv ./../pkg/workflow/js/**/*.json' --ignore-path --jq x86_64/git st-3935793888 (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv ithub-script/git/ref/tags/v9 -trimpath bject.type] | @tsv -p github.com/githurev-list -lang=go1.25 934659/b449/impo..feature-branch ls-r�� k/gh-aw/gh-aw/pkg/stats/statvar.go l /opt/hostedtoolcache/node/24.14.1/x64/bin/node -c=4 git layTitle node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows/archie.md infocmp /usr/bin/git *.json' '!../../git /opt/hostedtoolcrev-list r: $owner, name:--count git -C runs/20260509-170252-27576/test-1284979497/.github/workflows show /usr/bin/git l git r: $owner, name:xterm-color git (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v9
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv on' --ignore-path ../../../.pret.prettierignore (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv go1.25.8 -c=4 -nolocalimports -importcfg /tmp/go-build900934659/b444/importcfg -pack /tmp/go-build900934659/b444/_testmain.go (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v9.0.0
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9.0.0 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9.0.0 --jq [.object.sha, .object.type] | @tsv go1.25.8 -c=4 -nolocalimports -importcfg /tmp/go-build900934659/b396/importcfg -pack /tmp/go-build900934659/b396/_testmain.go ode_�� (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9.0.0 --jq [.object.sha, .object.type] | @tsv ./../pkg/workflo-errorsas (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv CompiledOutput2097239819/001 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv graphql -f 1/x64/bin/node -f owner=github r 1/x64/bin/node imag�� te '../../../**/*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path ../../../.prettieriggh ghcr.io/github/serena-mcp-server:latest (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv test 934659/b175/vet.cfg rtcfg.link (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv _messages.go _messages_test.go r: $owner, name: $name) { hasDiscussionsEnabled } } (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv || 'round-robin' /tmp/go-build900934659/b255/vet.owner=github ache/go/1.25.8/x64/pkg/tool/linu-f h ../../../.pretinfocmp (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv se 934659/b013/vet.cfg ache/go/1.25.8/x64/pkg/tool/linu-buildmode=exe (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv 7715/001/stabili.artifacts[].name 934659/b019/vet.cfg ache/go/1.25.8/x64/pkg/tool/linu--limit (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv 965223832 934659/b023/vet.cfg ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet ./../.prettieriginfocmp onpins_test (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv .js' --ignore-path .prettierignore --log-level=error -f tions/setup/node_modules/.bin/node -f owner=github -f git tion�� k/gh-aw/gh-aw/.github/workflows show son ignore --jq sv infocmp (http block)
  • https://api.github.com/repos/aws-actions/configure-aws-credentials/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/aws-actions/configure-aws-credentials/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv 2205332189 /tmp/go-build900934659/b249/vet.owner=github ache/go/1.25.8/x64/pkg/tool/linu-f l (http block)
    • Triggering command: /usr/bin/gh gh api /repos/aws-actions/configure-aws-credentials/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv -unreachable=false 934659/b396/_testmain.go /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh api /repos/aws-actions/configure-aws-credentials/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv 474065/b475/workflow.test infocmp 474065/b475/importcfg.link */*.ts' '**/*.jsinfocmp /opt/hostedtoolc-1 r: $owner, name:xterm-color NnPXzRWA_mli9/IaEpezjN4P3ehOPYo0current (local changes) /hom�� 492/001 scripts/**/*.js che/go-build/21/2163168206b729e5new (upstream) .prettierignore --log-level=erro-c t /opt/hostedtoolc/tmp/gh-aw/aw-master.patch (http block)
  • https://api.github.com/repos/azure/login/git/ref/tags/v2
    • Triggering command: /usr/bin/gh gh api /repos/azure/login/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv ithub-script/git/ref/tags/v9 /tmp/go-build900934659/b275/vet.cfg bject.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/azure/login/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv '/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmain_branch3631443492/001' '/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmain_branch3631443492/001' 474065/b395/vet.cfg **/*.ts **/*.json --ignore-path /bin/sh -c runs/20260509-170252-27576/test-remote.origin.url infocmp (http block)
  • https://api.github.com/repos/docker/login-action/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv runs/20260509-170024-15513/test-2084301249/.github/workflows /tmp/go-build900934659/b271/vet.cfg ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile l (http block)
    • Triggering command: /usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv --write **/*.cjs 474065/b287/vet.cfg **/*.json --ignore-path ../../../.prettiinstall node /hom�� 28051664/001 scripts/**/*.js /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/link l --log-level=erroadd .yml /opt/hostedtoolcache/go/1.25.8/x--jq (http block)
  • https://api.github.com/repos/docker/metadata-action/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/docker/metadata-action/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv ithub-script/git/ref/tags/v9 ache/go/1.25.8/x--jq ode_modules/.bin/sh vaScript31536760git tmain.go ache/go/1.25.8/x/home/REDACTED/work/gh-aw/gh-aw gh api ../pkg/workflow/js/**/*.json' --ignore-path ../../../.prettierignore --jq bject.type] | @tsv 934659/b405/cli.git /tmp/go-build900-C e/git git (http block)
  • https://api.github.com/repos/docker/setup-buildx-action/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/docker/setup-buildx-action/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv ithub-script/git/ref/tags/v9 ache/go/1.25.8/x--jq r: $owner, name: $name) { hasDiscussionsEnabled } } 3596503247 934659/b319/vet.-1 1/x64/bin/node /usr/bin/runc.original --ve�� ../pkg/workflow/js/**/*.json' --ignore-path ../../../.prettierignore ache/go/1.25.8/x--jq bject.type] | @tsv orts3727931181/0infocmp -trimpath e/git bash (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .default_branch ithub-script/git/ref/tags/v9 ..feature-branch ml g/stats/statvar.infocmp g/stats/spec_tes-1 ache/node/24.14.xterm-color infocmp -1 */*.ts' '**/*.json' --ignore-path ../../../.prettierignore 934659/b417/impo--jq n-dir/node sistency_GoAndJainfocmp /tmp/go-build900-1 ache/go/1.25.8/xxterm-color infocmp (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0.1.2
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv Onlyrepos_only_without_min-integrity3805406630/001 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv inspect mcp/arxiv-mcp-seowner=github ache/node/24.14.-f th .prettierignoinfocmp ache/go/1.25.8/x-1 erignore /usr/bin/gh api ExpressionCompiledOutput3979279942/001 -f 1/x64/bin/node -f owner=github -f 1/x64/bin/node (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv 2118577030 934659/b042/vet.cfg cfg ./../.prettieriginfocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv 3769211914/.github/workflows show til.test l --jq sv til.test 7347�� /home/REDACTED/work/gh-aw/gh-aw show in/sh nore ature-branch.pat-C es/.bin/node git (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv se 934659/b038/vet.cfg ck ./../.prettieriginfocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv 1389410484/.github/workflows -f 64/pkg/tool/linux_amd64/vet -f owner=github -f 64/pkg/tool/linux_amd64/vet -1 3915179097/.github/workflows gh ache/node/24.14.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/nodeview l --jq $name) { has/repos/actions/github-script/git/ref/tags/v9 git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-05-02 (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-04-09 (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-02-08 (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name cfg 64/pkg/tool/linux_amd64/vet nore (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 cfg 64/pkg/tool/linux_amd64/vet nore (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name config (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name --local 64/pkg/tool/linux_amd64/compile committer.name (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 cfg x_amd64/compile committer.email (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name infocmp x86_64/node ithub-script/gitgit 64/pkg/tool/linuconfig DiscussionsEnabluser.email docker itma�� inspect ghcr.io/github/serena-mcp-server:latest tions/setup/js/node_modules/.bin/sh h ../../../.pret/usr/bin/git 64/pkg/tool/linuremote bject.type] | @t-v git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1234567890
    • Triggering command: /usr/bin/gh gh api repos/{owner}/{repo}/actions/runs/1234567890 --jq {databaseId: .id, number: .run_number, url: .html_url, status: .status, conclusion: .conclusion, workflowName: .name, workflowPath: .path, createdAt: .created_at, startedAt: .run_started_at, updatedAt: .updated_at, event: .event, headBranch: .head_branch, on' --ignore-path ../../../.pret.prettierignore (http block)
    • Triggering command: /usr/bin/gh gh api repos/{owner}/{repo}/actions/runs/1234567890 --jq {databaseId: .id, number: .run_number, url: .html_url, status: .status, conclusion: .conclusion, workflowName: .name, workflowPath: .path, createdAt: .created_at, startedAt: .run_started_at, updatedAt: .updated_at, event: .event, headBranch: .head_branch, /js && npm run format:pkg-json -remote.origin.url /opt/hostedtoolc--jq piler-threat-spec-optimizer.lock.yml /tmp/go-build900node l /opt/hostedtoolc--write sh -c w/js/**/*.json' --ignore-path /opt/hostedtoolc../../../.prettierignore urity-red-team.lock.yml -unreachable=falinfocmp resolved$ /opt/hostedtoolcxterm-color node (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name --local 64/pkg/tool/linux_amd64/link committer.email (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 cfg 64/pkg/tool/linux_amd64/vet committer.email (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name config er: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnablremove remote.origin.urgh test-owner/test-api ed } } /usr/bin/gh 1/x6�� k/gh-aw/gh-aw/.github/workflows -f tions/setup/node_modules/.bin/sh l owner=github -f /usr/bin/gh (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name cfg 64/pkg/tool/linu--limit committer.email (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 cfg x_amd64/vet nore (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name ghcr.io/github/serena-mcp-server-w er: String!, $name: String!) { -buildmode=exe ithub-script/gitgit 64/pkg/tool/linuconfig ed } } docker itcu�� */*.ts' '**/*.json' --ignore-path ../../../.pret.prettierignore ghcr.io/github/serena-mcp-server:latest bject.type] | @tsv /ref/tags/v9 --jq $name) { hasuser.name infocmp (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name cfg 64/pkg/tool/linux_amd64/vet nore (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 cfg 64/pkg/tool/linu-importcfg nore (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name gh ules/.bin/sh /repos/actions/ggit --jq /usr/bin/infocmp--show-current ik/i3oPyO6p7elcSHlqQrid/S0XRaBgaconfig -C */*.ts' '**/*.json' --ignore-patremote.origin.url show 716d5a6de73fea917894147a17b9073f6d825ae870472f30-d ithub-script/gitgit 64/pkg/tool/linuconfig bject.type] | @tuser.name git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name cfg 64/pkg/tool/linux_amd64/vet nore (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 cfg 64/pkg/tool/linux_amd64/vet nore (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name config bin/sh l 64/pkg/tool/linuinit $name) { hasDiscussionsEnabl/tmp/gh-aw-test-runs/20260509-170252-27576/test-994178262/.github/workflows git -C itcustom_branch1117485747/001 itcustom_branch1117485747/002/work ndor/bin/sh l --jq sv git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name cfg 64/pkg/tool/linux_amd64/vet nore (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 cfg 64/pkg/tool/linu-importcfg nore (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name show h ./cmd/gh-aw --jq /node git -C LsRemoteWithRealGitcustom_branchremote.origin.url LsRemoteWithRealGitcustom_branch1117485747/001' (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path on' --ignore-path ../../../.prettierignore (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 100 (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 6 (http block)
  • https://api.github.com/repos/github/gh-aw/contents/.github/workflows/shared/reporting.md
    • Triggering command: /tmp/go-build900934659/b405/cli.test /tmp/go-build900934659/b405/cli.test -test.testlogfile=/tmp/go-build900934659/b405/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true (http block)
    • Triggering command: /tmp/go-build773474065/b405/cli.test /tmp/go-build773474065/b405/cli.test -test.testlogfile=/tmp/go-build773474065/b405/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true --pack_header=2,sh -q /usr/bin/infocmp"prettier" --write '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.pret.prettierignore infocmp k/gh�� xterm-color infocmp me: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } runs/20260509-17sh (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.47.4
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv 934659/b452/_pkg_.a tmain.go 64/pkg/tool/linux_amd64/vet -errorsas b/gh-aw/pkg/stri\n -nilfunc 64/pkg/tool/linux_amd64/vet -o d7i7/ejCLL4wOBp-asIRkd7i7 -trimpath /bin/sh plate-expressioninfocmp main -lang=go1.25 934659/b452/importcfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv bility_SameInputSameOutput3019687035/001/stabili@{u} **/*.cjs 474065/b480/vet.cfg ntent.md --ignore-path ../../../.pretti: sh -c licyBlockedUsersExpressionCompiledOutput1311834169/001 infocmp ache/node/24.14.1/x64/bin/node l gh workflowName: .xterm-color ache/node/24.14.1/x64/bin/node (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv --local committer.name 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv re --log-level=e!../../../pkg/workflow/js/**/*.json _require_validat--ignore-path /node /ref/tags/v9 config sv /opt/hostedtoolcache/go/1.25.8/x64/bin/gofmt /pre�� -w pkg/workflow/schedule_preprocessing_test.go x86_64/node pkg/workflow/schgit pkg/workflow/schadd pkg/workflow/scr. node (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows /opt/hostedtoolcache/node/24.14.--jq /node_modules/.bin/node l x_amd64/vet ed } } node /hom�� k/gh-aw/gh-aw/.g--repo scripts/**/*.js (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v2.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv ithub/workflows --write yml **/*.ts **/*.json --ignore-path node /hom�� Gitmain_branch3631443492/001' Gitmain_branch3631443492/001' me: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } .prettierignore --log-level=erroremote ed } } bash (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows --write sh l **/*.json --ignore-path node /opt�� lGitmaster_brancremote.origin.url lGitmaster_branch5383249/001' odules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/sh tierignore -604627554/new.m/tmp/test-expr-3253602738.js bject.type] | @tgithub.event.inputs.branch bash (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v3.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows --write ode_modules/.bin/sh l **/*.json ed } } npm run on' --ignore-path ../../../.prettierignore --silent er: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabl/repos/actions/github-script/git/ref/tags/v9 tierignore x_amd64/vet ed } } bash (http block)
  • https://api.github.com/repos/google-github-actions/auth/git/ref/tags/v2
    • Triggering command: /usr/bin/gh gh api /repos/google-github-actions/auth/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv 2205332189 /tmp/go-build900934659/b266/vet.owner=github ache/go/1.25.8/x64/pkg/tool/linu-f l (http block)
    • Triggering command: /usr/bin/gh gh api /repos/google-github-actions/auth/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv '/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmain_branch3631443492/001' '/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmain_branch3631443492/001' /home/REDACTED/work/_temp/uv-python-dir/node (http block)
  • https://api.github.com/repos/nonexistent/action/git/ref/tags/v999.999.999
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv nheWECdk9 committer.name 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv re --log-level=error --others me: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } /ref/tags/v9 (http block)
  • https://api.github.com/repos/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion core.hooksPath %H %ct %D (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion remote.origin.urgit x_amd64/link DiscussionsEnabled } } infocmp -1 .js' --ignore-path .prettierignore --log-level=error infocmp ules/.bin/node ithub-script/gitinfocmp x_amd64/compile $name) { hasxterm-color /usr/bin/gh (http block)
  • https://api.github.com/repos/owner/repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/owner/repo/actions/secrets --jq .secrets[].name (http block)
    • Triggering command: /usr/bin/gh gh api /repos/owner/repo/actions/secrets --jq .secrets[].name ath ../../../.pr**/*.json --jq k/gh-aw/gh-aw/no../../../.prettierignore /ref/tags/v9 remote sv git k/gh�� re --log-level=error on me: String!) { repository(owner: $owner, name:-f /../../.prettiergh erignore sv sh (http block)
  • https://api.github.com/repos/owner/repo/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo -importcfg /tmp/go-build900934659/b435/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/logger/example_test.go /home/REDACTED/work/gh-aw/gh-aw/pkg/logger/spec_test.go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo github.com (http block)
    • Triggering command: /usr/bin/gh gh workflow list --repo owner/repo --json name,path,state 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/test-owner/test-repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name on' --ignore-path ../../../.prettierignore (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name ath ../../../.pr**/*.json --jq k/gh-aw/gh-aw/ac../../../.prettierignore /ref/tags/v9 config sv git er copilot/deep-report-fix-duplicate-discussions on me: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } /../../.prettiergit erignore ed } } sh (http block)
  • https://api.github.com/repos/test/repo
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch kdAIFtwS7 cfg 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch 1389410484/.github/workflows show 64/pkg/tool/linux_amd64/vet w/js/**/*.json' infocmp nly $name) { hasxterm-color 64/pkg/tool/linux_amd64/vet api graphql -f in/node -f owner=github -f git (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Fix duplicate discussions creation in Agent Performance Analyzer Prevent duplicate weekly discussions in Agent Performance Analyzer May 9, 2026
Copilot AI requested a review from gh-aw-bot May 9, 2026 17:11
@github-actions

github-actions Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

Hey @copilot-swe-agent 👋 — great fix for the duplicate-discussion race condition in the Agent Performance Analyzer! The root cause is clearly explained and the three-part change (limit tightening, prompt intent alignment, lock recompile) is well-scoped.

One item worth addressing before merge:

  • Add tests — the diff has no changes to test files. Even for workflow configs, a smoke-level integration test (e.g., asserting that a single run of the analyzer emits exactly one discussion, or a unit check on the create-discussion.max constraint in the compiled lock) would give maintainers confidence the fix holds under regression.

If you'd like a hand wiring that up, here's a prompt you can assign to your coding agent:

Add a test for the agent-performance-analyzer workflow that verifies only one discussion is created per run.
Specifically:
1. Locate or create the appropriate test file for .github/workflows tests in this repo.
2. Write a test that parses .github/workflows/agent-performance-analyzer.lock.yml and asserts that the create-discussion step has max set to 1.
3. Optionally, add an integration-level assertion that a simulated run of the analyzer emits exactly one discussion object.
Follow the existing test conventions in the repo.

Generated by Contribution Check · ● 8.5M ·

@pelikhan pelikhan marked this pull request as ready for review May 9, 2026 17:22
Copilot AI review requested due to automatic review settings May 9, 2026 17:22
@pelikhan pelikhan merged commit 275b577 into main May 9, 2026
1 check passed
@pelikhan pelikhan deleted the copilot/deep-report-fix-duplicate-discussions branch May 9, 2026 17:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces duplicate weekly discussion creation by tightening the workflow’s safe-output policy and aligning the agent instructions to avoid a secondary “discussion” path for systemic follow-ups.

Changes:

  • Reduced safe-outputs.create-discussion.max from 2 to 1 in the source workflow markdown to enforce a single discussion per run.
  • Updated agent guidance to create an architectural issue (not a discussion) for systemic problems.
  • Regenerated the compiled .lock.yml so the runtime safe-output configuration matches the markdown source.
Show a summary per file
File Description
.github/workflows/agent-performance-analyzer.md Tightens create-discussion max to 1 and removes “architectural discussion” guidance in favor of an issue.
.github/workflows/agent-performance-analyzer.lock.yml Updates compiled safe-output config/metadata to enforce create_discussion.max: 1 at runtime.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[deep-report] Agent Performance Analyzer still creating duplicate discussions (1-second apart)

4 participants